#ifndef __SERIAL_H__
#define __SERIAL_H__

#include <stdio.h>
#include <stdarg.h>
#include "stm32f10x.h"

#define   USART_PORT             GPIOA
#define   USART_Pin_Tx           GPIO_Pin_2
#define   USART_Pin_Rx           GPIO_Pin_3


/*发送部分*/
void Serial_Init(void);
void Serial_SendByte(uint8_t Byte);
void Serial_SendArray(uint8_t *array, uint16_t length);
void Serial_SendString(char *string);
void Serial_SendNumber(uint32_t number, uint8_t length);
void Serial_Printf(char *format, ...);

#endif
